package com.my.redisson.delayqueue.handler.impl;

import com.my.redisson.delayqueue.handler.DelayEventHandler;
import com.my.redisson.domain.DelayEvent;
import com.my.redisson.enums.BizTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Demo1EventHandler implements DelayEventHandler {

    @Override
    public BizTypeEnum getBizType() {
        return BizTypeEnum.BIZ_DEMO1;
    }

    @Override
    public void handle(DelayEvent delayEvent) {
        log.info("Demo1EventHandler.handle delayEvent:{}", delayEvent);
    }
}
